<template>
  <div  v-if="$store.getters.roles.includes('admin')">
    <admin-home/>
  </div>

  <div v-else>
    <user-home/>
  </div>

</template>

<script>
import userHome from "@/views/homepage/user";
import adminHome from "@/views/homepage/admin";
export default {
  name: "homepage",
  components:{userHome,adminHome},
  methods:{
    getMatch(){
      console.log(this.$router)
    }
  }
}
</script>

<style scoped>

</style>
